//
//  PatCollectionViewCell.m
//  随拍
//
//  Created by lanou3g on 16/1/18.
//  Copyright © 2016年 Ashoka. All rights reserved.
//

#import "PatCollectionViewCell.h"

@implementation PatCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.imgView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width, 200)];
        
        [self.contentView addSubview:self.imgView];
        
        self.caption = [[UILabel alloc] initWithFrame:CGRectMake(0, 200, self.contentView.frame.size.width,20)];
        self.caption.numberOfLines = 0;
        self.caption.backgroundColor = [ UIColor whiteColor];
        
        self.caption.alpha = 0.7;
        
        
        self.caption.font = [UIFont systemFontOfSize:8];
        
        [self.contentView addSubview:self.caption];
        
    }
    return self;
}


@end
